<template>
  <el-form
    ref="ruleFormRef"
    style="max-width: 600px"
    :model="ruleForm"
    status-icon
    :rules="rules"
    label-width="auto"
    class="demo-ruleForm"
  >
    <el-form-item label="用户名">
      <el-input v-model="ruleForm.username" />
    </el-form-item>
    <el-form-item label="密码">
      <el-input v-model="ruleForm.password" />
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="login()">
        点击登录
      </el-button>
    </el-form-item>
  </el-form>
</template>
<script setup></script>
